package com.inkyi.assistant.app.notepad.entity;

/**
 * 列表展示的数据
 *
 * @author lihongkun
 * @date 2024/11/23
 */
public class NoteListData extends NoteBaseData {

    public static NoteListData of(String id, String title) {
        NoteListData noteListData = new NoteListData();
        noteListData.setId(id);
        noteListData.setTitle(title);
        return noteListData;
    }

    /**
     * 重写ToSting，用于展示
     *
     * @return {@link String }
     */
    @Override
    public String toString() {
        return getTitle();
    }
}
